//
//  Stroke.h
//  TouchPainter
//
//  Created by wjj on 15/2/12.
//  Copyright (c) 2015年 wjj. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Mark.h"

@interface Stroke : UIView<Mark, NSCopying>
{
    NSMutableArray *_children;
}

@property (nonatomic, strong) UIColor *color;
@property (nonatomic, assign) CGFloat size;
@property (nonatomic, assign) CGPoint location;
@property (nonatomic, readonly) NSUInteger count;
@property (nonatomic, readonly) id <Mark>lastChild;

- (void)addMark:(id<Mark>)mark;
- (void)removeMark:(id<Mark>)mark;
- (id<Mark>)childAtIndex:(NSUInteger)index;

@end
